package tunnel

import (
	"errors"
	"tunnel/authentication"
)

var (
	ErrDisconnect = errors.New("disconnect")
	ErrLogin      = errors.New("failed to login to server")
)

var (
	AllowRestart = map[error]int{
		ErrDisconnect:                 1,
		ErrLogin:                      1,
		authentication.ErrAuthTimeout: 1,
		authentication.ErrAuthConnect: 1,
	}
)
